"""
WSGI config for acreditacion project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""

import os

# import sys
# # add the hellodjango project path into the sys.path
# sys.path.append('<PATH_TO_MY_DJANGO_PROJECT>/acredt')

# # add the virtualenv site-packages path to the sys.path
# sys.path.append('<PATH_TO_VIRTUALENV>/lib/site-packages')

from django.core.wsgi import get_wsgi_application
from mezzanine.utils.conf import real_project_name

# para habilitar autenticacion antes de servir archivos estaticos en /static/media
# fuente: https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/apache-auth/
from django.contrib.auth.handlers.modwsgi import check_password

os.environ.setdefault("DJANGO_SETTINGS_MODULE",
                      "%s.settings" % real_project_name("acredt"))

from django.core.handlers.wsgi import WSGIHandler
#application = WSGIHandler()

application = get_wsgi_application()
